package com.daiziru.wuyanmall.dao;

import com.daiziru.wuyanmall.entity.WaitPayOrder;
import com.daiziru.wuyanmall.general.GeneralDAO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WaitPayOrderMapper extends GeneralDAO<WaitPayOrder> {

    public int addWaitPayOrder(@Param("itemId") Integer itemId,
                                  @Param("orderId") String orderId,
                                  @Param("payUrl") String payUrl);

    //去支付功能，根据订单id查询支付链接，用于生成支付二维码
    public List<WaitPayOrder> selectPayUrlByOrderId(String orderId);
}